<%@ page import="org.sky.sys.util.EnumUtils" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/view/inc/include.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<security:csrfMetaTags/>
<script type="text/javascript" src='${basepath}view/sys/widget/syswidgetlist.js'></script>
<script type="text/javascript">
var SYS_IS = <%=EnumUtils.getEnums("SYS.IS") %>
$(function() {
	init();
});
</script> 
</head>
<body>
<div class="easyui-layout"
	 data-options='fit:true,border:false'>
<div class="search" style="height: 50px"
	 data-options="
		region:'north'">
	<table class='noborder'>
		<tr>
			<th><label>名称:</label></th>
			<td><input  class="easyui-textbox" data-options="prompt:'输入名称'" name="q_name"  id="q_name" ></input></td>
			<td><a href="javascript:loadSysWidget()"class="easyui-linkbutton" plain="true" iconCls="icon-search">查询</a></td>
		</tr>
	</table>
</div>
<div data-options="region:'center'">
	<table id="syswidgetdg" class="easyui-datagrid"
		data-options="
				toolbar: '#tb',
				onDblClickRow:function(rowIndex, rowData){
									//SKY_EASYUI.beginEdit('syswidgetdg',rowIndex);
							  }
			">
		<thead>
			<tr>
				<th data-options="field: 'checked', checkbox:true"></th>
					<th data-options="field:'name',width:180,
					editor:{
							type:'textbox',
							options:{
								required:true
							}}">名称</th>
					<th data-options="field:'src',width:180,
					editor:{
							type:'textbox',
							options:{
								required:true
							}}">地址</th>
					<th data-options="field:'sysFlag',width:180,
					editor:{
							type:'textbox',
							options:{
								required:true
							}},
					formatter:function(value,row){
						  	 return SKY.formatterEnum(value,row,SYS_IS);
						 	}">是否系统</th>
					<th data-options="field:'opts',width:180,
					editor:{
							type:'textbox',
							options:{
								required:true
							}}">属性</th>
					<th data-options="field:'note',width:180,
					editor:{
							type:'textbox',
							options:{
								required:true
							}}">备注</th>
					<th data-options="field:'seq',width:180,
					editor:{
							type:'textbox',
							options:{
								required:true
							}}">序号</th>
			</tr>
		</thead>
	</table>
</div>
</div>
<div id="tb" style="height: auto">
	<a href="javascript:void(0)" class="easyui-linkbutton"
		data-options="iconCls:'icon-add',plain:true" onclick="addSysWidget()">增加</a>
	<a href="javascript:void(0)" class="easyui-linkbutton"
		data-options="iconCls:'icon-edit',plain:true" onclick="editSysWidget()">修改</a>
	<a href="javascript:void(0)" class="easyui-linkbutton"
		data-options="iconCls:'icon-20130408025545236_easyicon_net_30',plain:true" onclick="delSysWidget()">删除</a>
	<a href="javascript:void(0)" class="easyui-linkbutton"
		data-options="iconCls:'icon-06',plain:true" onclick="detailSysWidget()">查看明细</a>
</div>
</body>
</html>